package com.gome.spiderkit.task.base;

import org.quartz.Job;
import org.quartz.JobBuilder;

public class ScheduJobConfig {

	private String jobName;
	private String jobGroup;
	
	public ScheduJobConfig () {
		
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getJobGroup() {
		return jobGroup;
	}

	public void setJobGroup(String jobGroup) {
		this.jobGroup = jobGroup;
	}
	
	public JobBuilder getJobBuilder(Class<? extends Job> jobClass) {
		JobBuilder jobBuilder = JobBuilder.newJob(jobClass);
		jobBuilder = jobBuilder.withIdentity(this.jobName, this.jobGroup);
		return jobBuilder;
	}
}
